package ballFinder.environment;
public class Line {
	
	public Line(double x1,double y1,double x2,double y2)
	{this.x1=x1;
	this.x2=x2;
	this.y1=y1;
	this.y2=y2;}
	
	public Line(Point start, Point end)
	{
		x1=start.x;
		x2=end.x;
		y1=start.y;
		y2=end.y;
	}
	
	public double x1, x2, y1, y2;

	public void setLine(double x1, double y1, double x2, double y2) {
		this.x1=x1;
		this.x2=x2;
		this.y1=y1;
		this.y2=y2;
	}

	public Point getP2() {
		return new Point(x2,y2);
	}
	
	public Point getP1(){
		return new Point(x1,y1);
	}

}
